<template>
	<view class="mall-title">
		<view class="title-wap">
			<view class="leftTitle">
				<image class="img-icon" :src="ImgUrl" mode="heightFix"></image>
			    <view class="title">
				{{title}}
			    </view>
			</view>			
			<view class="right" @click="onClick">
				查看更多>
				
			</view>
		</view>
		<view v-if="subTitle" class="subTitle">
			{{subTitle}}
		</view>
	</view>
</template>

<script>
	export default {
		name: 'mall-title',
		props: {
			ImgUrl: {
				type: String,
				default: ''
			},
			title: {
				type: String
			},
			subTitle: {
				type: String
			},
			
			icon: {
				type: String,
				default: ''
			},			
			iconColor: {
				type: String,
				default: '#333333'
			},
			iconSize: {
				type: [Number, String],
				default: 28
			},
			size: {
				type: [Number, String],
				default: 16
			}
		},
		data() {
			return {

			}
		},
		methods:{
			onClick() {
				this.$emit('onCLick')
			}
		}
	}
</script>

<style lang="scss" scoped>
	
.mall-title {
	margin: 20rpx 0 10rpx 0;
	width: 94%;
	margin-left: 3%;
	.title {
		font-size: 28rpx;
		margin-left: 3%;
		color: #333;
		// font-weight: 700;
		// flex: 1;
	}
	.subTitle {
		font-size: $uni-font-size-sm;
		color:$uni-text-color-grey;
	}
	.title-wap {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 10rpx;
		.leftTitle{
			display: flex;
			width: 70%;
			align-items: flex-end;
			.title{
				
			}
		}
	}
}
.img-icon {
	width: 200rpx;
	height: 50rpx;
	margin-right: 10rpx;
}
.right {
	display: flex;
	align-items: center;
	color:#737373;
	font-size: 26rpx;
	image{
		width:16rpx ;
		margin-left: 10rpx;
	}
}
</style>
